
<script>
// @ is an alias to /src
/* 
<template>
    <div>
        <h1 v-if='level==1'><slot></slot></h1>
        <h2 v-else-if='level==2'><slot></slot></h2>
        <h3 v-else-if='level==3'><slot></slot></h3>
        <h4 v-else='level==4'><slot></slot></h4>
    </div>
</template>

*/
export default {
    name: 'XXX',
    props:['level'],
    render(h){
      return h('h'+this.level,{class:'123',attrs:{qqq:123}},[this.$slots.default,"hahahaha",h('i',666)])
      //  h(标签名或者组件,{元素或者组件的行内属性},标签或者组件包含的内容)
    },
    data() {
        return {
        
        }
    },
    components: {
        
    }
}
</script>
<style lang="less">

</style>